<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登陆</title>
</head>
<body>
    <form method="POST">
        <label>用户名</label><input name="username" type="text" /><br />
        <label>密码</label><input name="password" type="password"><br />
        
        {# 利用click 事件来刷新验证码 #}
        {# 通过样式来改变悬停时的图标 #}
        <img style="cursor:pointer;" src="/captcha" onclick='this.src=this.src+"?"+Math.random()' /> <br />

        <label>请输入验证码</label><input name="code" type="text"><br />

        <input type="submit" value="提交登陆">

    </form>
    
</body>
</html>